From: Colin Walters Date: Tue, 6 Jan 2015 23:47:04 +0000 (-0500) Subject: refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1003 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cf8d6848b3264eb5b92590d9802c1a0bd579b4c6;p=ostree.git refs: Use G_IO_ERROR_NOT_FOUND when a ref lookup fails rpm-ostree had code to check for this, which didn't actually work. I don't see a no backwards compatibility concern in changing this, as it's unlikely a caller would try to sensibly disambiguate FAILED. --- diff --git a/src/libostree/ostree-repo-refs.c b/src/libostree/ostree-repo-refs.c index ca584b66..5588c836 100644 --- a/src/libostree/ostree-repo-refs.c +++ b/src/libostree/ostree-repo-refs.c @@ -259,7 +259,7 @@ resolve_refspec_fallback (OstreeRepo *self, } else if (!allow_noent) { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, + g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "Refspec '%s%s%s' not found", remote ? remote : "", remote ? ":" : "",